<template>
  <div>
    <el-divider />
    <div>
      <el-row>
        <!-- <el-form-item label="数据对齐" prop="isDataAlignment">
          <el-checkbox v-model="form.isDataAlignment" true-label="Y" false-label="N" disabled />
        </el-form-item> -->
        <el-form-item v-if="form.isDataAlignment === 'Y'" label="日期选择" prop="dataSyncType">
          <el-radio-group v-model="form.dataSyncType">
            <el-radio-button label="TODAY">当天</el-radio-button>
            <el-radio-button label="YESTERDAY">昨天</el-radio-button>
            <el-radio-button label="DAY_LAST_MONTH">上月末</el-radio-button>
            <el-radio-button label="CUSTOM">自定义</el-radio-button>
          </el-radio-group>
        </el-form-item>
      </el-row>
      <el-row v-if="form.isDataAlignment === 'Y' && form.dataSyncType === 'CUSTOM'">
        <el-form-item label="自定义日期">
          <el-date-picker
            v-model="form.customTime"
            type="daterange"
            range-separator="至"
            start-placeholder="日期开始控件"
            end-placeholder="日期结束控件"
            value-format="yyyy-MM-dd"
          />
        </el-form-item>
      </el-row>
      <div v-if="form.isDataAlignment === 'Y'" style="margin-bottom: 10px">
        <script-table-consanguinity :task-pk-id="form.pkId" />
      </div>
    </div>
  </div>
</template>
<script>
import scriptTableConsanguinity from '../consanguinity'
export default {
  name: 'ScriptConvertList',
  components: { scriptTableConsanguinity },
  model: {
    prop: 'form',
    event: 'changes'
  },
  props: {
    form: {
      required: true,
      type: Object
    }
  },
  data() {
    return {
      scriptConsanguinityList: []
    }
  },
  created() {
  },
  methods: {

  }
}
</script>
